﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nancy.Model.DataModel.User
{
  public  class User: BaseEntity
    {

        /// <summary>
        /// 登录名
        /// </summary>
        [Required]
        public string LoginName { get; set; }

        
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        public string Password { get; set; }

        /// <summary>
        /// 账号状态
        /// </summary>
        public  UseState UseState { get; set; }

        public  Guid UserInfoId { get; set; }

        [ForeignKey("UserInfoId")]
        public  UserInfo UserInfo { get; set; }
    }
}
